package io.plus.user_interface.io.common;

import io.plus.interactive.Configuration;
import io.plus.interactive.user_interface.GroupListener;
import io.plus.user_interface.io.common.message.MessageHelper;
import lombok.Data;

@Data
public class UserConfiguration {
    /**
     * IP地址
     */
    protected String bindIp = null;
    /**
     * 监听端口
     */
    protected Integer bindPort = 80;
    /**
     * 心跳包发送时长heartbeatTimeout/2
     */
    protected long heartbeatTimeout = 0;
    /**
     * 全局群组上下文;
     */
    protected Configuration configuration;
    /**
     * 群组监听器;
     */
    protected GroupListener groupListener;
    /**
     * 用户消息持久化助手;
     */
    protected MessageHelper messageHelper;
    /**
     * 默认的接收数据的buffer size
     */
    protected long readBufferSize = 1024 * 2;

    public UserConfiguration(String bindIp, Integer bindPort) {
        this.bindIp = bindIp;
        this.bindPort = bindPort;
    }


}
